package BookStore.util;

import java.sql.*;
public class Myutil {
    public static  Connection   getConnection() throws SQLException{
        Connection conn=null;

        String url="jdbc:oracle:thin:@localhost:1521:XE";
        String user="new";
        String password="126875";
        conn = DriverManager.getConnection(url, user, password);// 连接数据库
        return conn;

    }
}